package cn.itcast.day04;

public class Demo {
    public static void main(String[] args) {
        goSwimming(new Swimming() {
            @Override
            public void swim() {
                System.out.println("去游泳！！！");
            }
        });
    }
    public  static  void  goSwimming(Swimming swimming){
        swimming.swim();
    }
}
interface Swimming{
    void swim();
}

